package com.example.back.service;

import com.example.back.dto.req.DrugFrequencyEditReq;
import com.example.back.dto.req.DrugFrequencyListReq;
import com.example.back.dto.resp.DrugFrequencyListResp;
import com.github.pagehelper.PageInfo;

/**
 * @Author wxy
 * @Date 2021/1/14 13:15
 * @Version 1.0
 */
public interface DrugFrequencyService {
    /**
     * 获取用药频率列表
     */
    PageInfo<DrugFrequencyListResp> list(DrugFrequencyListReq req);

    /**
     * 修改和添加用药频率
     */
    Object commitSave(DrugFrequencyEditReq req);

    /**
     * 删除用药频率
     */
    Object commitDel(DrugFrequencyEditReq req);
}
